import {createApp} from 'vue'
import App from "./App.vue";
//引入全局组件--顶部。底部
import HospitalTop from "@/components/hospital_top/index.vue";
import HospitalBottom from "@/components/hospital_bottom/index.vue";
//引入全局组件--登录组件
import Login from '@/components/login/index.vue'


//引入vue-router核心插件并安装
import router from "@/router";
//引入饿了么UI
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//引入国际化文件
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

//引入pinia仓库
import pinia from "@/store/index.ts";
import Visitor from "@/components/visitor/visitor.vue";
//引入路由鉴权文件
import '@/permisstion.ts'

const app = createApp(App)
//挂载全局组件
app.component('HospitalTop', HospitalTop)
app.component('HospitalBottom', HospitalBottom)
app.component('Login', Login)
app.component('Visitor',Visitor)

app.use(router)
app.use(ElementPlus, {
    locale: zhCn,
})
app.use(pinia)
app.mount('#app')

